<div ng-controller="GetOneBuildingCtrl">
  <div class="panel panel-default">

 	<div class="panel-body" style="padding-top: 0;padding-bottom: 0;">
 		<div class="nav navbar-nav m-t">
 			<a ui-sref="app.sys.campusconfig({campusid:'{{$state.params.cmid}}',page:'{{$state.params.page}}'})" ><span style="background-color: #e0e0e0; text-align: center;"><i class="glyphicon glyphicon-arrow-left" style="height:30px;width:30px; "></i></span></a> 	            
            <span><b>系统设置</b></span>
            <i class="fa fa-angle-right" style="font-size:20px"></i>
            <span><b>校园管理</b> </span>
            <i class="fa fa-angle-right" style="font-size:20px"></i>
            <span><b>配置</b></span> 
            <i class="fa fa-angle-right" style="font-size:20px"></i>
            <span><b>楼层配置</b></span>
         </div>
        <!-- nabar right -->
        <ul class="nav navbar-nav navbar-right" ng-controller="SigninFormController">          
          <li class="dropdown" dropdown>
            <a href class="dropdown-toggle clear" dropdown-toggle>
              <span class="thumb-sm avatar pull-right m-t-n-sm m-b-n-sm m-l-sm">
                <img src="img/a0.jpg" alt="...">
                <i class="on md b-white bottom"></i>
              </span>
              <span class="hidden-sm hidden-md"><b>{{namedata}}</b></span> <b class="caret"></b>
            </a>
            <!-- dropdown -->
            <ul class="dropdown-menu animated fadeInRight w">  
              <li>
                <a ui-sref="app.user.info">用户信息</a>
              </li>       
              <li class="divider"></li>
              <li>
                <a ui-sref="access.signin" ng-click="logout()">登出</a>
              </li>
            </ul>
            <!-- / dropdown -->
          </li>
        </ul>
 	</div>
</div>
<div class="panel panel-default m-t-n-md">
	<div class="panel-body" style="height:650px;">
		<div class="row">
			<h3 class="m-l-sm"><b>{{aaData.school_name}}--{{aaData.type_name}}</b></h3>
		    
			<div class="col-md-6">	
				<h4 class="m-t-lg m-l-sm"><b>基本信息修改</b></h4>			
				<form class="bs-example form-horizontal">
				<!-- 	<div class="form-group">
		              <label class="col-md-3 control-label mm">校区名称</label>
		              <div class="col-md-9">
		                <input type="text" class="form-control btn-rounded nn" ng-model="oo.campus_name"  >     
		              </div>
		            </div>  --> 
		            <div class="form-group">
		              <label class="col-md-3 control-label mm">名称</label>
		              <div class="col-md-9">
		                <input type="text" class="form-control btn-rounded nn" ng-model="oo.building_name" readonly="" >     
		              </div>
		            </div>       
		            
		            <div class="form-group">
		              <label class="col-md-3 control-label mm">总层数</label>
		              <div class="col-md-9">
		                <input type="text" class="form-control btn-rounded nn"  ng-model="oo.layer_amount" readonly="">     
		              </div>
		            </div>
		        </form>
		    </div>

		    <div class="col-md-6">
		    	<h4 class="m-t-lg m-l-sm"><b>添加维保人员</b></h4>	
		    	<form class="bs-example form-horizontal">
			    	
		           
		            <div class="form-group">
		              <label class="col-md-3 control-label mm">维保人员：</label>
		              <div class="col-md-9">
		                <select class="form-control btn-rounded" ng-model="service_man"  ng-options="o.user_id +',' + o.phone as o.user_name for o in aaData.service_man">
		                	<option value="">--请选择维保人员--</option>
		                </select>
		              </div>
		            </div>

		            <div class="form-group">
		              <label class="col-md-3 control-label mm">联系方式：</label>
		              <div class="col-md-9">
		                <input type="text" class="form-control btn-rounded "  ng-model="service_man.split(',')[1]" readonly="">     
		              </div>
		            </div>
	            </form>
		    </div>

		</div>
		<div class="row">
			<h4 class="m-t-xxl m-l"><b>楼层命名</b></h4>
			<div class="col-md-6" ng-repeat="aa in aaData.layers">				
				<form class="bs-example form-horizontal">
		            <div class="form-group" >
		              <label class="col-md-3 control-label mm">{{aa.layer_number}}：</label>
		              <div class="col-md-9">
		                <input type="text" class="form-control btn-rounded " ng-model="aa.layer_name"  >     
		              </div>
		            </div>   
		         </form>
		    </div>
		    
		</div>
		<div class="text-center m-t-xxl">
			<button class="btn  btn-rounded" ng-click="save(aaData.layers)">保存</button>
		</div>
	</div>
</div>
</div>